package org.example.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.example.domain.Menu;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
public class MenuVo extends Menu {
    private String sort;
    private Integer status;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    private List<MenuVo> children;
}
